@import '../../theme/mixins/mixins.scss';
@import '../../theme/default.scss';

@include b(drawer) {
  position: fixed;
  top: 0;
  z-index: 201;
  @include e(mask) {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    background-color: $--color-black;
    opacity: 0;
    touch-action: none;
    &-appear-active {
      opacity: 1;
      transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    }
    &-appear-done {
      opacity: 1;
    }
    &-exit {
      opacity: 0;
      transition: opacity 195ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    }
  }
  @include e(sider) {
    position: fixed;
    height: 100%;
    overflow: auto;
    background-color: $--color-white;
    box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2), 0 16px 24px 2px rgba(0, 0, 0, 0.14),
      0 6px 30px 5px rgba(0, 0, 0, 0.12);
    -webkit-overflow-scrolling: touch;
    @include m(left) {
      left: 0;
    }
    @include m(right) {
      right: 0;
    }
    @include m(top) {
      top: 0;
      right: 0;
      left: 0;
    }
    @include m(bottom) {
      right: 0;
      bottom: 0;
      left: 0;
    }
  }
}
